<%= form_for(@motorcade) do |f| %>
    <!--<!% if @motorcade.errors.any? %>-->
        <!--<div id="error_explanation">-->
          <!--<h2><!%= pluralize(@motorcade.errors.count, "error") %> prohibited this motorcade from being saved:</h2>-->

          <!--<ul>-->
            <!--<!% @motorcade.errors.full_messages.each do |msg| %>-->
                <!--<li><!%= msg %></li>-->
            <!--<!% end %>-->
          <!--</ul>-->
        <!--</div>-->
    <!--<!% end %>-->

    <table class="edit_table">
      <tr>
        <td style="width: 150px;"><%=f.label(t 'activerecord.attributes.motorcade.name') %></td>
        <td><%= f.text_field :name %><%= @motorcade.diy_error_msg :name%></td>
      </tr>
      <tr>
        <td><%=f.label(t 'activerecord.attributes.motorcade.address') %></td>
        <td><%= f.text_field :address %><%= @motorcade.diy_error_msg :address%></td>
      </tr>
      <tr>
        <td><%=f.label(t 'activerecord.attributes.motorcade.code') %></td>
        <td><%= f.text_field :code %><%= @motorcade.diy_error_msg :code%></td>
      </tr>
      <tr>
        <td style="width: 150px;"><%=f.label(t 'activerecord.attributes.motorcade.phone') %></td>
        <td><%= f.text_field :phone %><%= @motorcade.diy_error_msg :phone%></td>
      </tr>
      <tr>
        <td><%=f.label(t 'activerecord.attributes.motorcade.longitude') %></td>
        <td><%= f.text_field :longitude %><%= @motorcade.diy_error_msg :longitude%></td>
      </tr>
      <tr>
        <td><%=f.label(t 'activerecord.attributes.motorcade.latitude') %></td>
        <td><%= f.text_field :latitude %><%= @motorcade.diy_error_msg :latitude%></td>
      </tr>
      <%= f.fields_for :user do |user| %>
              <tr>
                <td style="width: 150px;"><%=f.label(t 'activerecord.attributes.user.login') %></td>
                <td><%= user.text_field :login %><%= @motorcade.user.diy_error_msg :login%></td>
              </tr>
              <tr>
                <td><%=f.label(t 'activerecord.attributes.user.user_name')%></td>
                <td><%= user.text_field :user_name %><%= @motorcade.user.diy_error_msg :user_name%></td>
              </tr>
              <tr>
                <td><%=f.label(t 'activerecord.attributes.user.email') %></td>
                <td><%= user.text_field :email %><%= @motorcade.user.diy_error_msg :email%></td>
              </tr>
              <tr>
                <td><%=f.label(t 'activerecord.attributes.user.password') %></td>
                <td><%= user.password_field :password %><%= @motorcade.user.diy_error_msg :password%></td>
              </tr>
              <tr>
                <td><%=f.label(t 'activerecord.attributes.user.password_confirmation') %></td>
                <td><%= user.password_field :password_confirmation %><%= @motorcade.user.diy_error_msg :password_confirmation%></td>
              </tr>
          <% end %>
      <tr>
        <td></td>
        <td><%= link_to (t 'activerecord.attributes.motorcade.confirm'), "#", {:id => "sure-btn", :class => "inline-block s-btn"} %></td>
      </tr>
    </table>
<% end %>
